package org.dding.msc.service;

import java.io.Serializable;

import org.dding.msc.exception.WaitingException;
import org.dding.msc.service.impl.AbstractService;

class NullService extends AbstractService<Void> implements Service<Void>,
		Serializable {

	private static final long serialVersionUID = 2463357698038752840L;

	static final NullService INSTANCE = new NullService();

	private NullService() {
	}

	public String toString() {
		return "Null service";
	}

	public int hashCode() {
		return 97;
	}

	public boolean equals(final Object obj) {
		return this == obj;
	}

	protected Object readResolve() {
		return INSTANCE;
	}

	public void waiting(boolean enable) throws WaitingException {
		
	}
}
